<template>
	<view>
		<view class="head">
			<!-- <u-icon class="icon" name="arrow-left" @click="back" color="#000" size="40"></u-icon> -->
			<view class="ping_msg" @click="shower = true">
				清楚消息
				<image src="../../static/users/clear2.png" mode=""></image>
			</view>
		</view>

		<u-action-sheet border-radius='30' @click="select" :list="list" v-model="shower"></u-action-sheet>


		<view :class="num==1?'title_res1 ji':'title_res1'" @click="jump(1)">
			点赞我的
		</view>

		<view :class="num==2?'title_res2 ji':'title_res2'" @click="jump(2)">
			我点赞的
		</view>

		<view class="p_me" v-if="num==1" v-for="(item,index) in 6">
			<image class="image1" src="../../static/users/hearer.png" mode=""></image>
			<view class="name">
				山海未眠
			</view>

			<view class="content" v-if="index%2==0">
				赞了这条帖子
			</view>

			<view class="content" v-if="index%2!=0">
				赞了这条评论
			</view>

			<view class="date">
				10-05 04:55
			</view>

			<image class="image2" src="../../static/users/jubao.png" mode="aspectFill"></image>


			<view class="me" v-if="index%2==0">
				<image src="../../static/users/luntan.png" mode="aspectFill"></image>

				<view class="name_comment">
					@王二小
				</view>

				<view class="content_me">
					<text>#故乡的云# </text>
					回到了故乡才发现这样的蓝天在
					大城市太难见到了，新鲜的空气，田野的空
					旷...我爱这里...
					回到了故乡才发现这样的蓝天在
					大城市太难见到了，新鲜的空气，田野的空
					旷...我爱这里...
				</view>
			</view>

			<view class="me_de" v-if="index%2!=0">
				<view class="content_2">
					<text>@王二小 :</text>
					回到了故乡，才发现这样的蓝天在大城市太难见到了，新
					鲜的空气，田野的空旷...我爱这里...回到了故乡才发现这样的蓝天在
					大城市太难见到了，新鲜的空气，田野的空
					旷...我爱这里...
				</view>
				<view class="xian"></view>

				<image src="../../static/users/luntan.png" mode="aspectFill"></image>

				<view class="name_comment">
					@王二小
				</view>

				<view class="content_me">
					<text>#故乡的云# </text>
					回到了故乡才发现这样的蓝天在
					大城市太难见到了，新鲜的空气，田野的空
					旷...我爱这里...
				</view>
				<!-- <text class="text1">@王二小</text>
				<text class="text2">评论已被删除！</text> -->
			</view>
			<!-- <view class="ipt" @click="change">
				<view>留下你的精彩评论吧</view>
				<image class="biaoqing" src="../../static/users/biaoqing.png" mode=""></image>
			</view> -->

		</view>


		<view class="m_p" v-if="num==2">
			<view class="" v-for="(item,index) in menu">


				<view class="me" v-if="index%2==0">
					<image src="../../static/users/luntan.png" mode="aspectFill"></image>

					<view class="name_comment">
						@王二小
					</view>

					<view class="date">
						10-05 12:00
					</view>

					<view class="guanzhu" @click="item.like=true" v-if="!item.like">
						关注
					</view>

					<view class="quguan" @click="item.like=false" v-if="item.like">
						取消关注
					</view>

					<view class="content_me">
						<text>#故乡的云# </text>
						回到了故乡才发现这样的蓝天在
						大城市太难见到了，新鲜的空气，田野的空
						旷...我爱这里...
						回到了故乡才发现这样的蓝天在
						大城市太难见到了，新鲜的空气，田野的空
						旷...我爱这里...
					</view>
				</view>
				
				<view class="havede" v-if="index%2!=0">
					<view class="content_de">
						<text>该帖子已被删除</text>
					</view>
					<view class="msg">
						<text class="zi1">@王二小</text>
						<text class="zi2">10-05 12:00</text>
						
						<view class="guanzhu" @click="item.like2=true" v-if="!item.like2">
							关注
						</view>
						
						<view class="quguan" @click="item.like2=false" v-if="item.like2">
							取消关注
						</view>
					</view>
				</view>
				
			</view>
		</view>

		<view class="bottom"></view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				shower: false,
				list: [{
					text: '清空点赞我的',
				}, {
					text: '清空我点赞的'
				}, {
					text: '清空全部消息'
				}],
				num: 1,
				menu:[]
			}
		},
		methods: {
			back() {
				uni.redirectTo({
					url: "../message/message"
				})
			},
			jump(num) {
				console.log(11);
				this.num = num
			},
			select(index) {
				console.log(index);
			}
		},
		onLoad(){
			for(var i=0;i<6;i++){
				this.menu.push({like:false,like2:false})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F4FA;
		position: absolute;
	}

	.head {

		width: 750rpx;
		height: 84rpx;

		.icon {
			margin: 20rpx 0 0 20rpx;
		}

		.ping_msg {
			position: absolute;
			left: 326rpx;
			top: 24rpx;
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #181818;

			image {
				margin-left: 10rpx;
				width: 26rpx;
				height: 26rpx;
			}
		}
	}

	.m_p {
		padding: 16rpx 30rpx 0 30rpx;

		.me {
			padding: 30rpx;
			margin: 32rpx 0 30rpx 0rpx;
			width: 690rpx;
			height: 264rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			position: relative;

			image {
				width: 176rpx;
				height: 204rpx;
			}

			.name_comment {
				position: absolute;
				left: 226rpx;
				top: 60rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #181818;
			}

			.content_me {
				position: absolute;
				left: 226rpx;
				bottom: 62rpx;
				width: 428rpx;
				font-size: 22rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #181818;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 3;
				overflow: hidden;

				text {
					font-family: PingFangSC-Medium;
					color: #181818;
					font-size: 22rpx;
					font-weight: 600;
				}
			}
		}
		.havede{
			width: 690rpx;
			height: 192rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			.content_de{
				width: 690rpx;
				height: 84rpx;
				border-bottom: 1px solid #E5E5E5;
				line-height: 84rpx;
				text{
					margin-left: 30rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #181818;
				}
			}
			.msg{
				padding: 41rpx 0 40rpx 30rpx;
				position: relative;
				.zi1{
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #181818;
				}
				.zi2{
                    margin-left: 21rpx;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 300;
					color: #999999;
				}
				.guanzhu {
					position: absolute;
					bottom: 31rpx;
					right: 30rpx;
					text-align: center;
					line-height: 46rpx;
					width: 120rpx;
					height: 46rpx;
					background: #181818;
					border-radius: 23px;
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
				
				}
				
				.quguan {
					position: absolute;
					bottom: 31rpx;
					right: 30rpx;
					text-align: center;
					line-height: 46rpx;
					width: 120rpx;
					height: 46rpx;
					background: #B5B3B2;
					border-radius: 23px;
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #FFFFFF;
				
				}
			}
		}

		.date {
			position: absolute;
			left: 343rpx;
			top: 64rpx;
			font-size: 22rpx;
			font-family: PingFang SC;
			font-weight: 300;
			color: #999999;
		}

		.guanzhu {
			position: absolute;
			top: 54rpx;
			right: 40rpx;
			text-align: center;
			line-height: 46rpx;
			width: 120rpx;
			height: 46rpx;
			background: #181818;
			border-radius: 23px;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;

		}

		.quguan {
			position: absolute;
			top: 54rpx;
			right: 40rpx;
			text-align: center;
			line-height: 46rpx;
			width: 120rpx;
			height: 46rpx;
			background: #B5B3B2;
			border-radius: 23px;
			font-size: 20rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;

		}
	}

	.bottom {
		width: 750rpx;
		height: 700rpx;
	}

	.title_res1 {
		margin: 20rpx 0 0 100rpx;
		width: 210rpx;
		height: 74rpx;
		border-radius: 37rpx;
		text-align: center;
		line-height: 74rpx;
	}

	.title_res2 {
		position: absolute;
		top: 104rpx;
		left: 440rpx;
		width: 210rpx;
		height: 74rpx;
		color: #666666;
		border-radius: 37rpx;
		text-align: center;
		line-height: 74rpx;
	}

	.ji {
		background: #181818;
		color: #fff;
	}

	.p_me {
		width: 750rpx;
		margin-top: 30rpx;
		padding: 0 30rpx 0 32rpx;
		display: flex;
		// height: 690rpx;
		flex-wrap: wrap;
		position: relative;
		border: 1rpx solid gray;
		border-radius: 30rpx 0 30rpx 0;

		// border-top: 1rpx solid gray;
		// border-bottom:1rpx solid gray ;
		.image1 {
			width: 80rpx;
			height: 80rpx;
		}

		.name {
			margin: 5rpx 0 0 21rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #181818;
		}

		.content {
			margin: 5rpx 0 0 21rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 400;
			color: #666666;
		}

		.date {
			position: absolute;
			top: 47rpx;
			left: 130rpx;
			font-size: 22rpx;
			font-family: PingFang SC;
			font-weight: 300;
			color: #999999;
		}

		.image2 {
			position: absolute;
			width: 25rpx;
			height: 5rpx;
			right: 30rpx;
			top: 35rpx;
		}



		.me {
			padding: 30rpx;
			margin: 32rpx 0 30rpx 0rpx;
			width: 690rpx;
			height: 264rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			position: relative;

			image {
				width: 176rpx;
				height: 204rpx;
			}

			.name_comment {
				position: absolute;
				left: 226rpx;
				top: 60rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #181818;
			}

			.content_me {
				position: absolute;
				left: 226rpx;
				bottom: 62rpx;
				width: 428rpx;
				font-size: 22rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #181818;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 3;
				overflow: hidden;

				text {
					font-family: PingFangSC-Medium;
					color: #181818;
					font-size: 22rpx;
					font-weight: 600;
				}
			}
		}

		.me_de {
			padding: 30rpx;
			margin: 32rpx 0 30rpx 0rpx;
			width: 690rpx;
			height: 382rpx;
			background: #FFFFFF;
			border-radius: 40rpx;
			position: relative;

			image {
				position: absolute;
				bottom: 30rpx;
				width: 176rpx;
				height: 204rpx;
			}

			.content_2 {
				width: 649rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 300;
				color: #181818;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;

				text {
					margin-right: 20rpx;
					font-size: 26rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #181818;
				}
			}

			.xian {
				position: absolute;
				top: 117rpx;
				left: 0;
				width: 690rpx;
				height: 1rpx;
				border: 1rpx solid #E5E5E5;
			}

			.name_comment {
				position: absolute;
				left: 226rpx;
				bottom: 172rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #181818;
			}

			.content_me {
				position: absolute;
				left: 226rpx;
				bottom: 62rpx;
				width: 428rpx;
				font-size: 22rpx;
				font-family: PingFang SC;
				font-weight: 500;
				color: #181818;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 3;
				overflow: hidden;

				text {
					font-family: PingFangSC-Medium;
					color: #181818;
					font-size: 22rpx;
					font-weight: 600;
				}
			}

			.text1 {
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #181818;
			}

			.text2 {
				margin-left: 21rpx;
				font-size: 26rpx;
				font-family: PingFang SC;
				font-weight: 600;
				color: #181818;
			}
		}

		.ipt {
			margin: 0 0 30rpx 0;
			padding: 0rpx 0 0rpx 40rpx;
			width: 616rpx;
			line-height: 74rpx;
			height: 74rpx;
			background: #fff;
			border-radius: 37rpx;
			position: relative;

			input {
				margin-left: 40rpx;
				width: 550rpx;
				height: 74rpx;
			}

			.biaoqing {
				position: absolute;
				right: -60rpx;
				bottom: 20rpx;
				width: 36rpx;
				height: 36rpx;
			}
		}

	}
</style>
